package cn.com.tom.bean;

public class Skill extends BaseBean{

    private String name;
    private Integer level;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getLevelString(){
        switch (level) {
            case 0:
                return "了解";
            case 1:
                return "熟悉";
            case 2:
                return "掌握";
            case 3:
                return "精通";
            default:
                return "其他";
        }
    }
}
